package com.sx.zongzhi.net;

/**
 * 网络请求结果数据
 * Created by ZYG on 2017/11/7.
 */

public class BaseResult<T> {

    public boolean success;
    public String errmsg;
    public int errcode;
    public T data;


    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseResult{" +
                "success=" + success +
                ", errmsg='" + errmsg + '\'' +
                ", errcode=" + errcode +
                ", data=" + data +
                '}';
    }
}
